#pragma once

#include <iostream>
#include <string>
#include <ctime>

#define INFO    1
#define DEBUG   2
#define WARNING 3
#define ERROR   4
#define FATAL   5

#define LOG(level, msg) Log(#level, msg, __FILE__, __LINE__)

void Log(const std::string level, const std::string msg, std::string filename, int line)
{
    std::cout << "[" + level + "][" + msg + "]["  << time(nullptr) << "][" + filename + "][" << line << "]" << std::endl;
}
